import request from "@/api/request"
import type { AxiosResponse } from "axios"

// get
export type GetWhiteRegisterParams = {
  app_params: 'zxcvbn1'
}
export function getWhiteRegister(params: GetWhiteRegisterParams):Promise<AxiosResponse>{
  return request('white/get_register_device_white', params, 'post')
}

// create or update
export type SubmitWhiteRegisterParams = {
  android_id: string,
  app_params: 'zxcvbn1',
  params_type: 1 | 2
}
export function submitWhiteRegister(params: SubmitWhiteRegisterParams):Promise<AxiosResponse>{
  return request('white/update_register_device_white', params, 'post')
}